/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* 主容器 */
.dashboard-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #2c3e50;
}

/* 顶部时间栏 */
.header {
    height: 80px;
    background: linear-gradient(90deg, #34495e 0%, #2c3e50 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 2px solid #3498db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.time-display {
    font-size: 24px;
    font-weight: bold;
    color: #ecf0f1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}


/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    padding: 20px;
    overflow: hidden;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 中央数据面板 */
.center-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.data-section {
    background: rgba(52, 73, 94, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #34495e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 机台信息表格 - 显示10行 */
.data-section:first-child {
    flex: 2;
}

/* 自定义机台表格 - 显示3行 */
.data-section:last-child {
    flex: 1;
}

.table-container {
    flex: 1;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #34495e;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #2c3e50;
    font-size: 34.56px;
}

.data-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.data-table th {
    padding: 9.072px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 37.44px;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-bottom: 3px solid #2980b9;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.data-table td {
    padding: 20.16px 8px;
    text-align: center;
    border-bottom: 1px solid #34495e;
    color: #ecf0f1;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: rgba(52, 152, 219, 0.1);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(52, 73, 94, 0.3);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-normal {
    background: #27ae60;
}

.status-warning {
    background: #f39c12;
}

.status-danger {
    background: #e74c3c;
}


/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2c3e50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .left-panel {
        width: 250px;
    }
    
    .header {
        padding: 0 20px;
    }
    
    .time-display {
        font-size: 20px;
    }
    
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 10px;
    }
    
    
    .header {
        height: 60px;
        padding: 0 15px;
    }
    
    .time-display {
        font-size: 16px;
    }
    
}
